package com.lyk.coursearrange.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lyk.coursearrange.entity.Stages;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CustomerInformationDtoTwo extends Model<CustomerInformationDtoTwo> {
    private static final long serialVersionUID=1L;

    /**
     * 客资id
     */
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Long customerId;
    /**
     * 微信号
     */
    @TableField("customer_wx")
    private String customerWx;

    /**
     * 客资来源
     */
    @TableField("customer_source")
    private Long customerSource;

    /**
     * 客资来源名称
     */
    @TableField("source_name")
    private String sourceName;


    /**
     * 来源负责人
     */
    @TableField("customer_sourcepeople")
    private Long customerSourcepeople;

    /**
     * 来源负责人名称
     */
    @TableField("sourcepeople_name")
    private String sourcepeopleName;

    /**
     * 教师id
     */
    @TableField("customer_teacherid")
    private Long customerTeacherid;

    /**
     * 教师姓名
     */
    @TableField("customer_teacher_name")
    private String customerTeacherName;
    /**
     * 学生姓名
     */
    @TableField("customer_student")
    private String customerStudent;
    /**
     * 客资状态 1.新课 2.未通过 3.已通过
     */
    @TableField("customer_state")
    private Long customerState;
    /**
     * 所属销售
     */
    @TableField("customer_sale")
    private Long customerSale;



    /**
     * 销售名称
     */
    @TableField("sale_name")
    private String saleName;

    /**
     * 是否交诊断费
     */
    @TableField("customer_ispay")
    private Long customerIspay;

    /**
     * 诊断费用
     */
    @TableField("customer_paymoney")
    private Double customerPaymoney;

    /**
     * 付款时间
     */
    @TableField("customer_paytime")
    private String customerPaytime;


    @TableField("pay_type")
    private Integer payType;
    @TableField(exist = false)
    private String payType2;

    /**
     * 是否交全款
     */
    @TableField("customer_isallpay")
    private Long customerIsallpay;




    /**
     * 全款费用
     */
    @TableField("customer_allpaymoney")
    private Double customerAllpaymoney;

    /**
     * 付款时间
     */
    @TableField("customer_allpaytime")
    private String customerAllpaytime;


    @TableField("pay_alltype")
    private Integer payAlltype;
    @TableField(exist = false)
    private String payAllType2;

    /**
     * 状态[1-未提交，2-已提交]
     */
    @TableField("type")
    private Integer type;

    /**
     * 存储Json的字段
     */
    @TableField("stages")
    private List<Stages> stages;


}
